package com.chuangke.file.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

/**
 * 文件权限管理对象 sys_file_permission
 * 
 * @author chuangke
 * @date "2020-09-03"
 */
public class SysFilePermission implements Serializable{

	
    private static final long serialVersionUID = 1L;
	
	public static String AUTH_TYPE_PERSON="p" ;
	public static String AUTH_TYPE_DEPT="e" ;
	public static String AUTH_TYPE_ROLE="r" ;
	
	public static final String AUTH_FILE_TYPE_FILE="F" ;
	public static final String AUTH_FILE_TYPE_DBANK="D" ;
	
	public static final String AUTH_ROLE_OWNER="1" ;
	public static String AUTH_ROLE_MANAGER="2" ;
	public static String AUTH_ROLE_WRITER="3" ;
	public static String AUTH_ROLE_READER="4" ;

	private String id;
	/** 主体对象 */
	private String dbankId;

	/** 授权对象 */
	private String authId;

	/** 授权对象类型 */
	private String authType;

	/** 是否文件授权 */
	private String isAuthFile;

	/** 文件 */
	private String fileId;

	/** 文件类型 */
	private String fileType;

	/** 授权角色 */
	private String authRole;

	/** 查看权限 */
	private String canView;

	/** 下载权限 */
	private String canDownload;

	/** 上传权限 */
	private String canUpload;

	/** 管理权限 */
	private String canManage;

	/** 修改权限 */
	private String canEdit;

	/** 删除权限 */
	private String canDelete;
	
	@TableField(fill = FieldFill.INSERT)
	private Date createdAt;
	@TableField(fill = FieldFill.INSERT)
	private String createdBy;
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updatedAt;
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private String updatedBy;
	@TableField(exist = false)
	private String createdByName;
	@TableField(exist = false)
	private String updatedByName;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDbankId() {
		return dbankId;
	}

	public void setDbankId(String dbankId) {
		this.dbankId = dbankId;
	}

	public String getAuthId() {
		return authId;
	}

	public void setAuthId(String authId) {
		this.authId = authId;
	}

	public String getAuthType() {
		return authType;
	}

	public void setAuthType(String authType) {
		this.authType = authType;
	}

	public String getIsAuthFile() {
		return isAuthFile;
	}

	public void setIsAuthFile(String isAuthFile) {
		this.isAuthFile = isAuthFile;
	}

	public String getFileId() {
		return fileId;
	}

	public void setFileId(String fileId) {
		this.fileId = fileId;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public String getAuthRole() {
		return authRole;
	}

	public void setAuthRole(String authRole) {
		this.authRole = authRole;
	}

	public String getCanView() {
		return canView;
	}

	public void setCanView(String canView) {
		this.canView = canView;
	}

	public String getCanDownload() {
		return canDownload;
	}

	public void setCanDownload(String canDownload) {
		this.canDownload = canDownload;
	}

	public String getCanUpload() {
		return canUpload;
	}

	public void setCanUpload(String canUpload) {
		this.canUpload = canUpload;
	}

	public String getCanManage() {
		return canManage;
	}

	public void setCanManage(String canManage) {
		this.canManage = canManage;
	}

	public String getCanEdit() {
		return canEdit;
	}

	public void setCanEdit(String canEdit) {
		this.canEdit = canEdit;
	}

	public String getCanDelete() {
		return canDelete;
	}

	public void setCanDelete(String canDelete) {
		this.canDelete = canDelete;
	}

	public Date getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getUpdatedAt() {
		return updatedAt;
	}

	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}

	public String getUpdatedBy() {
		return updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}

	public String getCreatedByName() {
		return createdByName;
	}

	public void setCreatedByName(String createdByName) {
		this.createdByName = createdByName;
	}

	public String getUpdatedByName() {
		return updatedByName;
	}

	public void setUpdatedByName(String updatedByName) {
		this.updatedByName = updatedByName;
	}

}
